package cc.zy.base.hr.entity;

import cc.zy.base.common.converter.TimeConverter;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;

import java.util.Date;

/**
 *  Entity
 *
 * @author linan
 * @date 2021-01-18 10:51:13
 */
@Data
@TableName("t_hr_course")
@Excel("课程")
public class Course {

    /**
     * 主键，自增
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 课程名称
     */
    @TableField("COURSE_NAME")
    @ExcelField(value = "课程名称")
    private String courseName;

    /**
     * 课程关键词，用中文逗号分隔
     */
    @TableField("COURSE_KEYWORDS")
    @ExcelField(value = "课程关键词，用中文逗号分隔")
    private String courseKeywords;

    /**
     * 课程简介
     */
    @TableField("COURSE_INFO")
    @ExcelField(value = "课程简介")
    private String courseInfo;

    /**
     *附件地址
     */
    @TableField("ATTACHMENT_URL")
    @ExcelField(value = "附件地址")
    private String attachmentUrl;

    /**
     *创建人ID
     */
    @TableField("CREATE_USER_ID")
    @ExcelField(value = "创建人ID")
    private Long createUserId;

    /**
     *创建时间
     */
    @TableField("CREATE_DATE")
    @ExcelField(value = "创建时间", writeConverter = TimeConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "CTT")
    private Date createDate;

    /**
     *最终修改人
     */
    @TableField("LAST_MODIFY_USER_ID")
    @ExcelField(value = "最终修改人")
    private Long lastModifyUserId;
    
    /**
     * lastModifyDate
     */
    @TableField("LAST_MODIFY_DATE")
    @ExcelField(value = "最终修改时间", writeConverter = TimeConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "CTT")
    private Date lastModifyDate;

    /**
     *
     */
    @TableField(exist = false)
    @ExcelField(value = "创建人")
    private String createUserName;

    /**
     *
     */
    @TableField(exist = false)
    @ExcelField(value = "修改人")
    private String lastModifyUserName;
   
}